package com.dyh.quickdemozwei.shiyanchang.pipeLine;

import java.util.HashMap;
import java.util.Map;
import java.util.function.Function;

public abstract class AbstarctPipeExecutor implements PipeExecutor {
    static final Function<String,Integer> str2int = Integer::valueOf;
    static final Function<String,Long> str2long = Long::valueOf;
    static final Function<String,Double> str2ldouble = Double::valueOf;
    static final Function<String,Float> str2float = Float::valueOf;
    public static Map<String,Function<String,?>> commonFunctions = new HashMap<>();
    static {
        commonFunctions.put("str2int",str2int);
        commonFunctions.put("str2long",str2long);
        commonFunctions.put("str2ldouble",str2ldouble);
        commonFunctions.put("str2float",str2float);
    }
}
